package org.way.rocketMq.dto;

import cn.hutool.core.util.IdUtil;
import lombok.Data;

import java.io.Serializable;

@Data
public class MessageDto implements Serializable {

    private String messageId;

    private String data;

    public MessageDto(String data) {
        this.messageId = IdUtil.simpleUUID();
        this.data = data;
    }

    public MessageDto() {
    }

    @Override
    public String toString() {
        return "MessageDto{" +
                "messageId='" + messageId + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
}
